package com.hk.huakangcompany.model;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: KangWang
 * Date: 2021/5/18 17:14
 * State：产品类型菜单
 */
public class ProductMenu implements Serializable {

    private Integer id;
    private String name;//菜单名称
    private Integer parentId;//菜单级别（0：一级菜单）
    private String gmtCreate;
    private String gmtModified;
//  不与数据库对应
    private List<ProductMenu> productMenus; // 所属二级菜单

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<ProductMenu> getProductMenus() {
        return productMenus;
    }

    public void setProductMenus(List<ProductMenu> productMenus) {
        this.productMenus = productMenus;
    }

    public String getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(String gmtModified) {
        this.gmtModified = gmtModified;
    }

    public ProductMenu(Integer id, String name, Integer parentId, String gmtCreate, String gmtModified, List<ProductMenu> productMenus) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
        this.productMenus = productMenus;
    }

    public ProductMenu(Integer id, String name, Integer parentId, String gmtCreate, String gmtModified) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

    public ProductMenu() {

    }

    @Override
    public String toString() {
        return "ProductMenu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parentId=" + parentId +
                ", gmtCreate='" + gmtCreate + '\'' +
                ", gmtModified='" + gmtModified + '\'' +
                ", productMenus=" + productMenus +
                '}';
    }
}
